package com.tougc.bean.beans;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2018/5/28 0028.
 */

public class VehicleBean {

    private List<Vehile> deptList;

    public List<Vehile> getDeptList() {
        return deptList;
    }

    public void setDeptList(List<Vehile> deptList) {
        this.deptList = deptList;
    }

    public class Vehile implements Parcelable {
        //库存id
        private int dept_id;
        //客户姓名
        private String c_name;
        //客户姓名
        private String credentials_no;
        //手机
        private String mobile;
        //批次
        private String batch;
        //型号
        private String dc_model;
        //品牌
        private String dc_brand;
        //颜色
        private String curr_car_color;
        //库存单位
        private String dept_name;
        //库存单位
        private String vehicle_license;
        //车架号
        private String car_frame_no;
        //发动机编号
        private String engine_no;
        //上牌费（元）
        private String vehicle_license_money;
        //发票编号
        private String invoice_no;
        //开票价格(元)
        private String invoice_price;
        //购置税完税编号
        private String tax_certificate_no;
        //购置税金额（元）
        private String purchase_tax;
        //商业保险公司
        private String insurance_comp;
        //商业保单编号
        private String commercial_policy_no;
        //商业险保费（元）
        private String commercial_policy_money;
        //商业保单截止日
        private String commercial_policy_expiration_date;
        //交强险保单编号
        private String compulsory_policy_no;
        //交强险保费（元）
        private String compulsory_policy_money;
        //交强险截止日期
        private String compulsory_policy_expiration_date;
        //车船税（元）
        private String vehicle_use_tax;

        private int select;

        public int getSelect() {
            return select;
        }

        public void setSelect(int select) {
            this.select = select;
        }

        public Vehile() {

        }

        public Vehile(int select, int dept_id, String dept_name) {
            this.dept_id = dept_id;
            this.dept_name = dept_name;
            this.select  = select ;
        }

        public int getDept_id() {
            return dept_id;
        }

        public void setDept_id(int dept_id) {
            this.dept_id = dept_id;
        }

        public String getC_name() {
            return c_name;
        }

        public void setC_name(String c_name) {
            this.c_name = c_name;
        }

        public String getCredentials_no() {
            return credentials_no;
        }

        public void setCredentials_no(String credentials_no) {
            this.credentials_no = credentials_no;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getBatch() {
            return batch;
        }

        public void setBatch(String batch) {
            this.batch = batch;
        }

        public String getDc_model() {
            return dc_model;
        }

        public void setDc_model(String dc_model) {
            this.dc_model = dc_model;
        }

        public String getDc_brand() {
            return dc_brand;
        }

        public void setDc_brand(String dc_brand) {
            this.dc_brand = dc_brand;
        }

        public String getCurr_car_color() {
            return curr_car_color;
        }

        public void setCurr_car_color(String curr_car_color) {
            this.curr_car_color = curr_car_color;
        }

        public String getDept_name() {
            return dept_name;
        }

        public void setDept_name(String dept_name) {
            this.dept_name = dept_name;
        }

        public String getVehicle_license() {
            return vehicle_license;
        }

        public void setVehicle_license(String vehicle_license) {
            this.vehicle_license = vehicle_license;
        }

        public String getCar_frame_no() {
            return car_frame_no;
        }

        public void setCar_frame_no(String car_frame_no) {
            this.car_frame_no = car_frame_no;
        }

        public String getEngine_no() {
            return engine_no;
        }

        public void setEngine_no(String engine_no) {
            this.engine_no = engine_no;
        }

        public String getVehicle_license_money() {
            return vehicle_license_money;
        }

        public void setVehicle_license_money(String vehicle_license_money) {
            this.vehicle_license_money = vehicle_license_money;
        }

        public String getInvoice_no() {
            return invoice_no;
        }

        public void setInvoice_no(String invoice_no) {
            this.invoice_no = invoice_no;
        }

        public String getInvoice_price() {
            return invoice_price;
        }

        public void setInvoice_price(String invoice_price) {
            this.invoice_price = invoice_price;
        }

        public String getTax_certificate_no() {
            return tax_certificate_no;
        }

        public void setTax_certificate_no(String tax_certificate_no) {
            this.tax_certificate_no = tax_certificate_no;
        }

        public String getPurchase_tax() {
            return purchase_tax;
        }

        public void setPurchase_tax(String purchase_tax) {
            this.purchase_tax = purchase_tax;
        }

        public String getInsurance_comp() {
            return insurance_comp;
        }

        public void setInsurance_comp(String insurance_comp) {
            this.insurance_comp = insurance_comp;
        }

        public String getCommercial_policy_no() {
            return commercial_policy_no;
        }

        public void setCommercial_policy_no(String commercial_policy_no) {
            this.commercial_policy_no = commercial_policy_no;
        }

        public String getCommercial_policy_money() {
            return commercial_policy_money;
        }

        public void setCommercial_policy_money(String commercial_policy_money) {
            this.commercial_policy_money = commercial_policy_money;
        }

        public String getCommercial_policy_expiration_date() {
            return commercial_policy_expiration_date;
        }

        public void setCommercial_policy_expiration_date(String commercial_policy_expiration_date) {
            this.commercial_policy_expiration_date = commercial_policy_expiration_date;
        }

        public String getCompulsory_policy_no() {
            return compulsory_policy_no;
        }

        public void setCompulsory_policy_no(String compulsory_policy_no) {
            this.compulsory_policy_no = compulsory_policy_no;
        }

        public String getCompulsory_policy_money() {
            return compulsory_policy_money;
        }

        public void setCompulsory_policy_money(String compulsory_policy_money) {
            this.compulsory_policy_money = compulsory_policy_money;
        }

        public String getCompulsory_policy_expiration_date() {
            return compulsory_policy_expiration_date;
        }

        public void setCompulsory_policy_expiration_date(String compulsory_policy_expiration_date) {
            this.compulsory_policy_expiration_date = compulsory_policy_expiration_date;
        }

        public String getVehicle_use_tax() {
            return vehicle_use_tax;
        }

        public void setVehicle_use_tax(String vehicle_use_tax) {
            this.vehicle_use_tax = vehicle_use_tax;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(dept_id);
            dest.writeString(c_name);
            dest.writeString(credentials_no);
            dest.writeString(mobile);
            dest.writeString(batch);
            dest.writeString(dc_model);
            dest.writeString(dc_brand);
            dest.writeString(curr_car_color);
            dest.writeString(dept_name);
            dest.writeString(vehicle_license);
            dest.writeString(car_frame_no);
            dest.writeString(engine_no);
            dest.writeString(vehicle_license_money);
            dest.writeString(invoice_no);
            dest.writeString(invoice_price);
            dest.writeString(tax_certificate_no);
            dest.writeString(purchase_tax);
            dest.writeString(insurance_comp);
            dest.writeString(commercial_policy_no);
            dest.writeString(commercial_policy_money);
            dest.writeString(commercial_policy_expiration_date);
            dest.writeString(compulsory_policy_no);
            dest.writeString(compulsory_policy_money);
            dest.writeString(compulsory_policy_expiration_date);
            dest.writeString(vehicle_use_tax);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public final Parcelable.Creator<VehicleBean.Vehile> CREATOR = new Creator<VehicleBean.Vehile>() {

            @Override
            public VehicleBean.Vehile createFromParcel(Parcel source) {
                VehicleBean.Vehile status = new VehicleBean.Vehile();
                status.dept_id = source.readInt();
                status.c_name = source.readString();
                status.credentials_no = source.readString();
                status.mobile = source.readString();
                status.batch = source.readString();
                status.dc_model = source.readString();
                status.dc_brand = source.readString();
                status.curr_car_color = source.readString();
                status.dept_name = source.readString();
                status.vehicle_license = source.readString();
                status.car_frame_no = source.readString();
                status.engine_no = source.readString();
                status.vehicle_license_money = source.readString();
                status.invoice_no = source.readString();
                status.invoice_price = source.readString();
                status.tax_certificate_no = source.readString();
                status.purchase_tax = source.readString();
                status.insurance_comp = source.readString();
                status.commercial_policy_no = source.readString();
                status.commercial_policy_money = source.readString();
                status.commercial_policy_expiration_date = source.readString();
                status.compulsory_policy_no = source.readString();
                status.compulsory_policy_money = source.readString();
                status.compulsory_policy_expiration_date = source.readString();
                status.vehicle_use_tax = source.readString();
                return status;
            }

            @Override
            public VehicleBean.Vehile[] newArray(int size) {
                return new VehicleBean.Vehile[0];
            }
        };

    }

}
